import React from 'react';
import ReactDOM from 'react-dom';
import List from './components/list'
class App extends React.Component {
  state = {
    ary: [111, 222, 333, 444]
  }
  render() {
    let { ary } = this.state;
    return <div className=''>
      <List data={ary} render={(item) => {
        return <>
          <h2>{item}</h2>
          <i>hehehe</i>
        </>
      }}>
        <h2>哈哈</h2>
      </List>
    </div>;
  }
}

ReactDOM.render(<App />, document.getElementById('root'))